<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .img {
        display: inline-block;
        height: 44px;
        width: 44px;
        background-image: url(1.gif);
      }
      .i2 {
        background-position: -45px 0;
      }
      .i3 {
        background-position: -90px 0;
      }
      .img:hover {
        background-position: 0 -45px;
      }
      .i2:hover {
        background-position: -45px -45px;
      }
      .i3:hover {
        background-position: -90px -45px;
      }
    </style>
  </head>
  <body>
    <a href="#" class="img i1"></a>
    <a href="#" class="img i2"></a>
    <a href="#" class="img i3"></a>
  </body>
</html>
